package card;

public enum Value {
  TWO(2), THREE(3), FOUR(4), FIVE(5), SIX(6), SEVEN(7), EIGHT(8), NINE(9), TEN(10), JACK(11), QUEEN(12), KING(13), ACE(14);

  private int value;

  private Value(int value) {
    this.value = value;
  }

  static public Value from_i(int i) {
    for (Value v: Value.values())
      if (v.value == i)
        return v;

    return null;
  }

  public int get_value() {
    return this.value;
  }
}